import request from '@/utils/request'

// 查询边缘盒子列表
export function listEdgebox(query) {
  return request({
    url: '/equipment/edgebox/list',
    method: 'get',
    params: query
  })
}

// 查询边缘盒子详细
export function getEdgebox(id) {
  return request({
    url: '/equipment/edgebox/' + id,
    method: 'get'
  })
}

// 新增边缘盒子
export function addEdgebox(data) {
  return request({
    url: '/equipment/edgebox',
    method: 'post',
    data: data
  })
}

// 修改边缘盒子
export function updateEdgebox(data) {
  return request({
    url: '/equipment/edgebox',
    method: 'put',
    data: data
  })
}

// 删除边缘盒子
export function delEdgebox(id) {
  return request({
    url: '/equipment/edgebox/' + id,
    method: 'delete'
  })
}
